package fr.matwizz.mesdevoirs.serveur.model;

import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;

/**
 * Created by RGA on 26/04/14.
 */
@Entity
public class Agenda {

    @Id
    @Index
    private Long id;

    private String name;

    public Agenda(String name) {
        this.name = name;
    }

    private Agenda() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return new StringBuilder("ID: ").append(id).append(" Name: ").append(name).toString();
    }
}
